home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / PInterfaces / ShutDown.p < prev    next >
Encoding:
Text File  |  1992-01-29  |  1.2 KB  |  55 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3. Created: Monday, September 16, 1991 at 12:56 AM
  4.  ShutDown.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1987-1991
  8.   All rights reserved
  9. }
  10.  
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT ShutDown;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingShutDown}
  22. {$SETC UsingShutDown := 1}
  23.  
  24. {$I+}
  25. {$SETC ShutDownIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$SETC UsingIncludes := ShutDownIncludes}
  31.  
  32. CONST
  33. sdOnPowerOff = 1;        {call procedure before power off.}
  34. sdOnRestart = 2;        {call procedure before restart.}
  35. sdOnUnmount = 4;        {call procedure before unmounting.}
  36. sdOnDrivers = 8;        {call procedure before closing drivers.}
  37. sdRestartOrPower = 3;    {call before either power off or restart.}
  38.  
  39. PROCEDURE ShutDwnPower;
  40.  INLINE $3F3C,$0001,$A895;
  41. PROCEDURE ShutDwnStart;
  42.  INLINE $3F3C,$0002,$A895;
  43. PROCEDURE ShutDwnInstall(shutDownProc: ProcPtr;flags: INTEGER);
  44.  INLINE $3F3C,$0003,$A895;
  45. PROCEDURE ShutDwnRemove(shutDownProc: ProcPtr);
  46.  INLINE $3F3C,$0004,$A895;
  47.  
  48.  
  49. {$ENDC} { UsingShutDown }
  50.  
  51. {$IFC NOT UsingIncludes}
  52.  END.
  53. {$ENDC}
  54.  
  55.